<div class="nav_right">
    <h4>分类列表</h4>
    <ul class="nav nav-pills nav-stacked">
        <% catData.forEach(function(item){ %>
        <li >
            <a href="/articles/lst/<%=item._id%>">
                <span class="badge pull-right"><%=item.art_num%></span><%=item.cat_name%></a>
        </li>
        <%})%>
    </ul>
</div>

<div class="nav_right">
    <h4>最近更新</h4>
    <ul class="nav nav-pills nav-stacked">
        <% newData.forEach(function(item){ %>
        <li >
            <a href="/articles/details/<%=item._id%>"><%=item.title.substr(0,20)%></a>
        </li>
        <%})%>
    </ul>
</div>

<div class="nav_right">
    <h4>本站使用 Nodejs+mongoDB+bootstrap</h4>
    <ul class="nav nav-pills nav-stacked">
        <li ><a href="https://heroku.com">heroku免费云空间</a></li>
        <li ><a href="https://mlab.com">500M免费mongoDB数据库</a></li>
        <li ><a href="http://nodejs.cn/">Nodejs中文网</a></li>
        <li ><a href="https://cnodejs.org/">Nodejs中文社区</a></li>
        <li ><a href="https://www.mongodb.com/">mongoDB官网</a></li>
        <li ><a href="http://v3.bootcss.com/">bootstrap</a></li>
    </ul>
</div>

<div class="nav_right">
    <h4>关于我</h4>
    <ul class="nav nav-pills nav-stacked">
        <li ><a href="https://github.com/xiaomeng79/blog">博客源码</a></li>
        <li >https://github.com/xiaomeng79/blog</li>
    </ul>
</div>